package com.aramis.mydytt.ui.base

import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider

/**
 * Description: BaseActivity
 * @author lizhidan
 * Created: 2021/4/8
 */
open class BaseActivity : AppCompatActivity() {

    protected inline fun <reified T : ViewModel> createViewModel(): T {
        return ViewModelProvider(this).get(T::class.java)
    }
}